package org.example.springboot.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.persistence.Column;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import java.time.LocalDateTime;
@lombok.Data
@AllArgsConstructor
@NoArgsConstructor
public class Items {
    private Integer id;

    @TableField("project_name")
    private String projectName;

    @TableField("project_leader")
    private String projectLeader;

    @TableField("contact_phone")
    private String contactPhone;

    @TableField("sales_team")
    private String salesTeam;

    @TableField("sales_contact_phone")
    private String salesContactPhone;

    @TableField("after_sales_team")
    private String afterSalesTeam;

    @TableField("after_sales_contact_phone")
    private String afterSalesContactPhone;

    @TableField("project_description")
    private String projectDescription;

    @TableField("cost_description")
    private String costDescription;

    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime createdTime;

}
